<template>
    <div class="layout-container">
        <el-form class="formClass" ref="form" :model="form" label-width="80px">
            <el-form-item label="姓名">
                <el-input v-model="form.name" />
            </el-form-item>

            <el-form-item label="电话">
                <el-input v-model="form.name" />
            </el-form-item>

            <el-form-item>
                <el-button type="primary" @click="commitSave">保存</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script setup lang="ts">
import {onActivated, onMounted, ref} from 'vue'

const form = ref({})

function commitSave() {

}

onMounted(() => {

})

onActivated(() => {
})

</script>

<style>
.formClass {
    width: 500px;
    margin: 10px;
}
</style>

